home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-06 | 6.0 KB | 194 lines | [TEXT/MPCC] |
- There is a file named "Metrowerks Setup" in the "C++ Templates folder. Delete the file
- named "Setup" in this folder. Make a copy of the "Metrowerks Setup" file and then
- rename this copy to "Setup".
-
- This will make sure that the file types of the source code generated is the correct
- creator, so Metrowerks will be launched automatically when double-clicking on one
- of these files.
-
-
-
- After generating code for the first time, for your new prototype, follow this method
- to get Metrowerks CW5 C++ up and working for you:
-
- CREATING A PROJECT...
-
- • Find the 'Sources" folder made by the Code Generator.
- • Open the "Sources" folder.
- • Open the "mm" folder inside the "Sources" folder.
- • Double click on any of the files you see there, this will automatically launch
- Metrowerks Project Manager.
- • Select "New Project…" from the "File" menu. Use the template for a "Mac C++ App".
- When Metrowerks brings up a save dialog, it is asking you to name the new Metrowerks
- project you are making.
- Relocate your new "Sources" folder that the Code Generator made for you. Open the
- "Sources" folder. Now enter your project name, using Option-P for the "π" part of
- the name, e.g. MyProgram.π
-
- • Close the one file that Metrowerks opened for you.
-
- • Select the project window.
-
-
-
- ADDING Gooey SPECIFIC FILES...
-
- • Select the "main.cp" file. This will define the area to add files into.
-
- • Under the "Project" menu, select the "Add File..." menu item.
-
- • Open the "mm" folder, from the Add dialog.
-
- • Press the "Add all" button, this will select every file in this "mm" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
- • Make the project window taller if necessary, for extra empty space at the bottom.
-
- • Select the "main.cp" file again.
-
- • Select the "Remove files" menu option under the "Project" menu.
-
-
-
- ADDING user SPECIFIC FILES...
-
- • Under the "Source" menu, select the "Add File..." menu item.
-
- • Go up one level, from the "mm" folder into the "Source" folder.
-
- • Open the "u" folder, from the Add dialog.
-
- • Select the first file only.
-
- • Press the "Add" button and then the "Done" button. This adds that one file to the end.
-
- • Drag that one file down, this selects a new segment for the next files to go into.
-
- • Select that single file, this tells Metrowerks to all all the next files into that
- same segment.
-
- • Under the "Source" menu, select the "Add File..." menu item.
-
- • Press the "Add All" button, this will select every file in this "u" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
- • Now go to the top of the project window and select any file in the first segment.
- This tells it that more files added will go into that segment.
-
-
-
- ADDING RESOURCE FILES...
-
- • Select the "My Resource.rsrc" file.
-
- • Under the "Project" menu, select the "Add File..." menu item.
-
- • Go up one level, from the "mm" folder into the "Source" folder.
-
- • Open the "resources" folder, from the Add dialog.
-
- • Press the "Add All" button, this will select every file in this "u" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
- • Reselect the "My Resource.rsrc" and choose "Remove files" from the "Project" menu.
-
-
-
-
- MAKING A precompiled HEADER
-
- • Under the "File" menu, select the "Open..." menu item.
-
- • Go up one level, from the "resources" folder into the "Source" folder.
-
- • Open the "mmHeaders.cp" file. This is the file that will make the precompiled headers.
-
- • Under the "Project" menu select the "Precompile…" menu item.
-
- • When the headers are compiled a Save dialog will say "Save headers as...". Give the
- headers the name "mmHeaders". (If doing 68K and PPC then name them "mmHeaders68K" and
- "mmHeadersPPC").
-
- • Close the "mmHeaders.c" file.
-
-
-
-
- PREFERENCES
-
- • Set all your preferences.
-
- • Be sure to select the "C++" compiler in the preferences.
-
- • In the Language preferences, change the prefix file to be "mmHeaders". (If doing 68K and
- PPC then name them "mmHeaders68K" and "mmHeadersPPC").
-
- • In the Project preferences, change the partition size to something larger, like 1024K.
-
- • Change the "SIZE Flags" the flags you want.
-
- • Set all other preferences that you want.
-
-
-
-
- BUILDING
-
- • Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile
- all the files.
-
-
-
-
-
- CODING...
-
- • Make your changes to any file that does not start with "mm". All the other files hook
- into the "mm" files to provide you with access.
-
-
-
- RE-GENERATION. After making changes or additions to your prototype.
-
- • Generate all sources again. This will make a new folder named "Sources" or "Sources"
- with a number after it if that folder alreay exists.
-
- • Drag the "mm" folder from the newly generated folder into your working folder.
- NOTE: This replaces your older "mm" folder. If you have made changes to any "mm"
- files, you should never need to, then drag them into another folder first.
-
- • Drag the "mmXXX.rsrc" file from the new "resources" folder into your working "resources"
- folder.
-
- • Empty the trash.
-
-
- If you added a new Window, Dialog, or Alert then drag that corresponding file from the
- new "u" folder into your working "u" folder. If you are asked about replacing a
- file then say "No", you got the wrong file.
-
-
- If you added a menu then open your "menuXXX.h" file and the new "menuXXX.h". Copy over
- the prototype for the new menu. Open your "menuXXX.c" file and the new "menuXXX.c".
- Copy over the routine for the new menu.
-
- If you added a button or other control then let THINK find any additional routines for
- you, in error messages.
-
-
-
- • Under the "Project" menu, select the "Remove Binaries" menu item. This will make sure
- that all files will be recompiled.
-
- • Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile
- all the files.
-
- If there are errors involving new routines, like a checkbox handler routine where there
- were no check boxes before. Open the old corresponding "xxx.h" file, from the "u" folder.
- Open the new "xxx.h" file, copy the new prototype over. Open the "xxx.c" files and copy
- over the new routine.
-
-